﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SmallValveOperatePage.aspx.cs" Inherits="WaterApp.QueryReport.SmallValveOperatePage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>小阀门操作</title>
    <link href="../Styles/if.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManage1" runat="server"></asp:ScriptManager>
    <div>
    <div style="width:100%; background-color: #E0E0E0; height:30px; 
                font-family:宋体; font-size:12px; font-weight:bold; line-height:30px;">
      查询和报表=>小阀门操作查询
    </div>
      <table>
        <tr>
           <td style="text-align:right;">地点</td>
           <td style="text-align:left;"><asp:TextBox ID="tbaddress" runat="server" Width="180px"></asp:TextBox> </td>   
         </tr>
         <tr>
           <td style="text-align:right;">关闭时间</td>
           <td colspan="3" style="text-align:left;"><asp:TextBox ID="tbclosedq" runat="server" Width="180px"></asp:TextBox>
           <asp:ImageButton runat="server" ID="imggzrq" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                                             AlternateText="Click to show calendar" /> </td>       
        </tr> 
        <tr>
           <td style="text-align:right;">启动时间</td>
           <td style="text-align:left;"><asp:TextBox ID="tbstartdt" runat="server" Width="180px"></asp:TextBox>
           <asp:ImageButton runat="server" ID="imgstartdt" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                                             AlternateText="Click to show calendar" />
           <asp:LinkButton ID="smallvalveoper" runat="server" 
                             OnClick="smallvalveoperfound_Click"
                             Width="80px" CssClass="linkbutton" Text="查询"></asp:LinkButton>
           </td>
         </tr>                          
      </table>
      <asp:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="tbclosedq" 
                                              PopupButtonID="imggzrq" Format="yyyy/MM/dd"  />
      <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="tbstartdt" 
                                              PopupButtonID="imgstartdt" Format="yyyy/MM/dd"  />                                                      
    </div>
    <div>
       <div style="width: 99%; padding: 2px 0px 0px 0px;">
                    <asp:GridView ID="Gvsmallvalveoper" runat="server" Width="100%" AutoGenerateColumns="false"
                              AllowPaging="true" PageSize="15" >
                    <HeaderStyle CssClass="poputopbj" Font-Names="Arial,宋体" Font-Size="12px" /> 
                    <SelectedRowStyle BackColor = "#CCCCCC" ForeColor="black" />
                    <AlternatingRowStyle BackColor="#F7F7F7"></AlternatingRowStyle>
                    <PagerStyle ForeColor="Black" />  
                    <Columns>
                      <asp:BoundField DataField="MRNO" HeaderText="序号" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="80px"></asp:BoundField>
                      <asp:BoundField DataField="FillInDt" HeaderText="填报日期" 
                                      ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" ></asp:BoundField> 
                      <asp:BoundField DataField="LOCATION" HeaderText="地点" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                        
                      <asp:BoundField DataField="VALVE_ID" HeaderText="编号" 
                                      ItemStyle-HorizontalAlign="right"></asp:BoundField> 
                      <asp:BoundField DataField="DIAMETER" HeaderText="口径" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField> 
                      <asp:BoundField DataField="CloseDt" HeaderText="关闭日期及时间" 
                                      ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120px" ></asp:BoundField>                        
                      <asp:BoundField DataField="StartDt" HeaderText="开启日期及时间" 
                                      ItemStyle-HorizontalAlign="Left" ItemStyle-Width="120px" ></asp:BoundField> 
                      <asp:BoundField DataField="ZhuanCount" HeaderText="转数" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                    
                      <asp:BoundField DataField="StartDirection" HeaderText="开启方向" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                                   
                     <asp:BoundField DataField="OperateEmp" HeaderText="操作人" 
                                      ItemStyle-HorizontalAlign="Left" Visible="false" ></asp:BoundField>                                    
                      <asp:BoundField DataField="CreateDt" HeaderText="操作时间" 
                                      ItemStyle-HorizontalAlign="Left" Visible="false" ></asp:BoundField>                                                                                                                                                                      
                      <asp:TemplateField ItemStyle-Width="30px">
                         <ItemTemplate>
                              <asp:LinkButton ID="linkSel" runat="server" ForeColor="Black"                                               
                                              ToolTip ='<%# DataBinder.Eval(Container.DataItem, "MRNO")%>'
                                              CommandName="Select" Text="详情">
                              </asp:LinkButton>
                         </ItemTemplate>
                      </asp:TemplateField>          
                    </Columns>
                   </asp:GridView>
                 </div>
                 <div>
                   <asp:Label ID="lbmessage" runat="server" Width="300px" ForeColor="Red"></asp:Label>
                 </div>
    </div>
    </form>
</body>
</html>
